import Vue from 'vue'

import CVueRouter from "./CVue-Router";

Vue.use(CVueRouter)
const routes = [
    {
        path: "/components",
        component: () => import("@/views/codehope.componentsConnect"),
        meta:{
            title:"自定义CRouter"
        }
    },
    {
        path: "/components_slot",
        component: () => import("@/views/codehope.slot"),
        meta:{
            title:"自定义CRouter"
        }
    },
    // codehope.Form.Custom
    {
        path: "/codehopeForm",
        component: () => import("@/views/codehope.Form.Custom"),
        meta:{
            title:"自定义CRouter"
        }
    },
    // code.hope.cuex.test
    {
        path: "/codehopecuex",
        component: () => import("@/views/code.hope.cuex.test"),
        meta:{
            title:"自定义Cuex"
        }
    },
]
const router = new CVueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes,
})

export default router
